<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Z-7
  Date: 2022/2/23
  Time: 14:36
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="/resource/bootstrap4/css/bootstrap.css" rel="stylesheet">
    <script type="text/javascript" src="/resource/js/jquery-3.2.1.js"></script>
    <script type="text/javascript" src="/resource/bootstrap-treeview/js/bootstrap-treeview.js"></script>
    <script src="/resource/bootstrap4/js/bootstrap.js"></script>
    <title>登录</title>
</head>
<body>
    <c:if test="${status != null}">
        <font color="red">${status}</font>
    </c:if>
    <form action="/goods/login" method="post">
        用户名：<input type="text" name="name"><br>
        密码：<input type="password" name="pwd"><br>
        <button>登录</button> <button type="button" onclick="to_regirest()">注册</button>
    </form>
<script type="text/javascript">
    function to_regirest() {
        location="/goods/to_regirest";
    }
</script>
</body>
</html>
